package br.com.unifebe.tcc.UTILS;

import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class GerarBanco {
	
	public GerarBanco() {
		
		Configuration conf = new AnnotationConfiguration();
		conf.configure();
		SchemaExport se = new SchemaExport( conf );
		se.create(true, true);
		Session session = HibernateUtils.getSessionFactory().openSession();
		Transaction t = session.beginTransaction();
	}
	
}
